package com.liang.service;

import com.liang.autoconfigure.DemoProperties;

/**
 * @author liangben
 * @date 10/4/2022 下午 4:39
 */

public class DemoService {

    public DemoService(DemoProperties demoProperties) {
        this.demoProperties = demoProperties;
    }

    public DemoService() {
    }

    private DemoProperties demoProperties;

    public void sayHello(){
        System.out.println("-----"+demoProperties.getName()+"--------"+demoProperties.getPort());
    }
}
